import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import MyTable from "../components/MyTable";
import MyButton from "../components/MyButton";
import User from "../components/User";
import User2 from "../components/User2";
import User3 from "../components/User3";
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/h',
      name: 'HelloWorld',
      component: MyButton
    },
    {
      path: '/table',
      name: 'myTable',
      component: MyTable
    },
    {
      path: '/user',
      name: 'User',
      component: User
    },
    {
      path: '/user2',
      name: 'User2',
      component: User2
    },
    {
      path: '/user3',
      name: 'User3',
      component: User3
    }

  ]
})
